package org.example.service;

import org.example.internalCommon.dto.ResponseResult;
import org.example.internalCommon.request.ForecastPriceDTO;
import org.example.internalCommon.response.DirectionResponse;
import org.example.remote.MapDicDistrictClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DriectionService {

    @Autowired
    private MapDicDistrictClient mapDicDistrictClient;

    public ResponseResult driving(ForecastPriceDTO forecastPriceDTO) {
        // 调用第三方接口地图接口
        DirectionResponse directionResponse = mapDicDistrictClient.dicDistrict(forecastPriceDTO);

        return ResponseResult.success(directionResponse);
    }
}
